package com.gaoboy.springbootgoods.mapper;

import com.gaoboy.springbootgoods.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

@Mapper
public interface GoodsMapper {
    List<Goods> queryByDynamicFields(@Param("name")String name,
                                     @Param("startdate")Date startdate,
                                     @Param("enddate")Date enddate);


    List<Goods> queryByIds(int[]ids);

    int reduceStock(Integer id);
}
